package cn.jiakeyun.umeng_vertify_example

import android.app.Activity
import com.android.tu.loadingdialog.LoadingDailog

class DialogInstance private constructor() {

    var dialog: LoadingDailog? = null

    companion object {
        val instance by lazy {
            DialogInstance()
        }
    }


    fun showDialog(context: Activity) {
        dialog = LoadingDailog.Builder(context).setMessage("登录中").create()
        dialog?.show()
    }

    fun hideDialog() {
        dialog?.dismiss()
        dialog = null
    }


}